
<div class="divadd">
    <form action="" method="post" enctype="multipart/form-data">
        <p class="bold">Insert Product</p>
        <?php echo validation_errors('<div class="error">', '</div>'); ?>
        <?php echo $errors; ?>
        <table border="0">

            <tr>
                <td class="formupdate">Product Name</td>
                <td><input type="text" name="name" size="25" /></td>
            </tr>
            <tr>
                <td class="formupdate">Price</td>
                <td><input type="text" name="price" size="25"/></td>
            </tr>
            <tr>
                <td class="formupdate">Sale</td>
                <td><input type="text" name="sale" size="5" value="0" /> %</td>
            </tr>
            <tr>
                <td class="formupdate">Description</td>
                <td><textarea rows="5" cols="30" name="description"></textarea></td>
            </tr>

            <tr>
                <td class="formupdate">Image</td>
                <td><input id="images" type="file" name="images[]" multiple size="25"/>
                </td>
            </tr>
            <tr>
                <td class="formupdate">Category</td>
                <td><select name="category">
                        <option value="">--Chọn Category--</option>
                        <?php if($listcate != NULL){ ?>
                            <?php $i=1; foreach($listcate as $data){ ?>
                                <option value="<?php echo $data['cate_id']; ?>"><?php echo $data['cate_name']; ?></option>
                            <?php } } ?>
                    </select></td>
            </tr>
            <tr>
                <td class="formupdate">Brand</td>
                <td><select name="brand">
                        <option value="0">--Chọn Brand--</option>
                        <?php if($listbrand != NULL){ ?>
                            <?php $i=1; foreach($listbrand as $data){ ?>
                                <option value="<?php echo $data['brand_id']; ?>"><?php echo $data['brand_name']; ?></option>
                            <?php } } ?>
                    </select></td>
            </tr>
            <tr>
                <td class="formupdate">Product New</td>
                <td><select name="new">
                        <option value="1">Có</option>
                        <option value="0">Không</option>
                    </select></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td><input id="submit" type="submit" name="submit" value="Insert"/></td>
            </tr>
        </table>
    </form>
</div>
